I have a static library which I want to split up into 4 DLLs according to functionality. The static library currently contains a large number of global variables. This will give problems if I decide to split the code across DLLs. I know that there are ways to export and import variables from DLLs. I have MS visual C++ 1.51 compiler. I tried using exporting importing of variables. But it doesn't work. Does anybody has a sample code for doing the same ?